package com.fan.txl.mock.api.service;

import com.fan.txl.data.Friend;
import com.fan.txl.data.base.Rsp;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by os on 2017/4/2.
 * Title
 */

public interface FriendService {

    //@Retrofit(delay = 2500, failurePercent = 15)
    /**
     *  friends api group
     */
    @GET("friends")
    Observable<Rsp<List<Friend>>> friends();


    /**
     *  friend api group
     */
    @GET("friend/{id}")
    Observable<Rsp<List<Friend>>> friend(@Path("id") String id);
}
